<%@ page import="jakarta.servlet.RequestDispatcher" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/24 0024
  Time: 14:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"

%>
<html>
<head>
  <title>test1</title>
</head>
<body>
<%
  String name=request.getParameter("name");
  String password=request.getParameter("password");
  if(name.equals("lucky") && password.equals("123456")){
    RequestDispatcher rd=request.getRequestDispatcher("test2_2.jsp");
    rd.forward(request,response);
  }else{
    RequestDispatcher rd=request.getRequestDispatcher("test2.jsp");
    rd.forward(request,response);
  }
%>
</body>
</html>















































































































































